<?php
session_start();
include_once("./c/config.php");
$access_token = 'https://api.weixin.qq.com/sns/oauth2/access_token?appid='.$appId.'&secret='.$secret.'&code='.$_GET['code'].'&grant_type=authorization_code';
$access = file_get_contents($access_token);
$accessObj = json_decode($access);
$openid   = $accessObj->openid;
setcookie("uid", $openid, time()+3600);
header('Location: http://si.mei94.com/gsw10/?selim=base'); 


 